import RestClient  from "@/driver/RestClient"
import DeviceService from "@/service/DeviceService";
const UserService = {
    /**
     * 登录.
     * @param data
     * @param callback
     * @param failCallback
     */
    login(data, callback, failCallback) {
        DeviceService.getDeviceCode(deviceCode => {
            data.deviceCode = deviceCode
            RestClient.post('/api/v1/users/actions/login', data, callback, failCallback)
        })
    }
}

export default UserService